const R = require('ramda')

let arr = [{
  id: 1
}, {
  id: 1
}]

console.log(R.dropRepeatsWith((a, b) => a.id === b.id)(arr))
